import type { Component } from 'vue'
import type { RouteRecordRaw } from 'vue-router'

export interface MenuItem {
  key: string
  label: string
  icon?: Component
  children?: MenuItem[]
}

export interface PermissionMenu {
  id: number
  parentId: number
  permissionName: string
  permissionCode: string
  permissionType: number
  path?: string
  component?: string
  icon?: string
  children?: PermissionMenu[]
}

export type MenuData = RouteRecordRaw | PermissionMenu 